from fastapi import APIRouter

from api.product import get_classify, add_product
from api.welcome import welcome

api_router = APIRouter(prefix='/api', tags=['api'])

api_router.add_api_route(path='/welcome', endpoint=welcome, methods=['GET'])
api_router.add_api_route(path='/product/get_classify', endpoint=get_classify, methods=['GET'])
api_router.add_api_route(path='/product/add_product', endpoint=add_product, methods=['POST'])
